﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DadayunApi.Model
{
    /// <summary>
    /// 接收表单实例查询的模板基类
    /// 实际使用时，在此基础上增加主表和子表的字段
    /// 主表字段为{Value,R,U}格式
    /// 子表字段为{SubFieldsRoleAction,C,D,R.U,Values}格式
    /// </summary>
    public class RecieveFormTemplateBase
    {
        public string Id { get; set; }        
        public bool IsValid { get; set; }
        public bool IsBlock { get; set; }
        public bool DataEnable { get; set; }
        public string CreatorName { get; set; }        
        public string ModifyByName { get; set; }
        public string CreatorPosition { get; set; }

        public MainFieldDataAction Creator { get; set; }
        public MainFieldDataAction CreatorPositionId { get; set; }
        public MainFieldDataAction CreateTime { get; set; }
        public MainFieldDataAction ModifyBy { get; set; }
        public MainFieldDataAction ModifyTime { get; set; }

        public RoleAction RoleAction { get; set; }
    }
    public class MainFieldDataAction
    {
        public string Value { get; set; }
        public bool R { get; set; }
        public bool U { get; set; }
    }
    
}
